﻿using Prompts.Service.ReportExecution;

namespace Prompts.Service.PromptService.Construction
{
    public class ReportExecutionServiceInjector
    {
        private static readonly IReportExecutionService ReportExecutionService = CreateReportExecutionService();

        public static IReportExecutionService Inject()
        {
            return ReportExecutionService;
        }

        private static IReportExecutionService CreateReportExecutionService()
        {
            var executionService = 
                new ReportExecutionService
                    {
                        Credentials = System.Net.CredentialCache.DefaultCredentials
                    };
            return executionService;
        }
    }
}